<!DOCTYPE html>
<html>
<head>
<meta content="charset=gb2312" />
<title>www.divcss5.com的CSS div的完整居中实例</title>
<style type="text/css">
<!--
body{ text-align:center; 
    margin:0 auto; 
    background: url(http://www.divcss5.com/img/css-logo.gif) no-repeat center;}
.waicheng {color: #0066CC; margin:5px auto; width:700px; height:120px; line-height:120px; border:1px solid #000000; }
.waicheng img {vertical-align:middle;}
-->
</style>
</head>
<body>
<div class="waicheng">
    我是css中的居中</br>
    的完整居中实例;
    </br>
    我的布局外层有一个边为1px 
    <img src="http://www.divcss5.com/img/css-logo.gif" alt="图片内容居中" />
    </div>
</body>
</html>